const express = require('express')

const router = express.Router()

const userRouter = require('./user.js')
const dishRouter = require('./dish.js')
const catRouter = require('./cat.js')
const cartRouter = require('./cart.js')
const orderRouter = require('./order.js')
const checkToken=require('../../../middleware/checkToken')

// 用户表相关操作
router.use('/user', userRouter)
router.use('/dish', dishRouter)
router.use('/cat', catRouter)
router.use('/cart', checkToken, cartRouter)
router.use('/order', orderRouter)

module.exports = router